/*
 * File:   RuntimeException.h
 * Author: henrya
 *
 * Created on June 16, 2009, 2:31 PM
 */

#ifndef _EXCEPTION_H
#define	_EXCEPTION_H
#include <exception>
#include <string>
using std::exception;
using std::string;

class Exception : public exception {
protected:
    string msg;
public:
Exception(string msg) : msg(msg) {}
    virtual ~Exception() throw() {}

    virtual const char* what() const throw () {
        return msg.c_str();
    }
};


#endif	/* _RUNTIMEEXCEPTION_H */

